import request from '@/utils/request'

export function driver_index(params) {
  return request({
    url: '/driver/index',
    method: 'get',
    params
  })
}

export function driver_add(data) {
  return request({
    url: '/driver/add',
    method: 'post',
    data:data
  })
}

export function driver_edit(data) {
  return request({
    url: '/driver/edit',
    method: 'post',
    data:data
  })
}

export function driver_delete(data) {
  return request({
    url: '/driver/delete',
    method: 'post',
    data:data
  })
}

export function driver_confirmDelete(data) {
  return request({
    url: '/driver/confirmDelete',
    method: 'post',
    data:data
  })
}

export function driver_getCar(params) {
  return request({
    url: '/driver/getCar',
    method: 'get',
    params
  })
}

export function driver_bindCar(data) {
  return request({
    url: '/driver/bindCar',
    method: 'post',
    data:data
  })
}

export function driver_delCar(data) {
  return request({
    url: '/driver/delCar',
    method: 'post',
    data:data
  })
}
